home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- zshparam - zsh parameters
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- A parameter has a name, a value, and a number of attributes.
- A name may be any sequence of alphanumeric characters and
- _'s, or the single characters *, @, #, ?, -, $, or !. The
- value may be either a _s_c_a_l_a_r (a string), an integer, or an
- array. To assign a scalar or integer value to a parameter,
- use the ttttyyyyppppeeeesssseeeetttt builtin. To assign an array value, use sssseeeetttt
- ----AAAA _n_a_m_e _v_a_l_u_e .... The value of a parameter may also be
- assigned by writing:
-
- _n_a_m_e=_v_a_l_u_e ...
-
- If the integer attribute, -iiii, is set for _n_a_m_e, the _v_a_l_u_e is
- subject to arithmetic evaluation.
-
- The value of an array parameter may be assigned by writing:
-
- _n_a_m_e=(_v_a_l_u_e ...) ...
- Individual elements of an array may be selected using a
- subscript. A subscript of the form [[[[_e_x_p]]]] selects the single
- element _e_x_p, where _e_x_p is an arithmetic expression which
- will be subject to arithmetic expansion as if it were
- surrounded by "$((...))". The elements are numbered
- beginning with 1 unless the KKKKSSSSHHHH____AAAARRRRRRRRAAAAYYYYSSSS option is set when
- they are numbered from zero.
-
- A subscript of the form [[[[****]]]] or [[[[@@@@]]]] evaluates to all elements
- of an array; there is no difference between the two except
- when they appear within double quotes. "$foo[*]" evaluates
- to "$foo[1] $foo[2] ...", while "$foo[@]" evaluates to
- "$foo[1]" "$foo[2]", etc.
-
- A subscript of the form [[[[_e_x_p_1,,,,_e_x_p_2]]]] selects all elements in
- the range _e_x_p_1 to _e_x_p_2, inclusive. If one of the subscripts
- evaluates to a negative number, say -_n, then the _nth element
- from the end of the array is used. Thus "$foo[-3]" is the
- third element from the end of the array _f_o_o, and "$foo[1,-
- 1]" is the same as "$foo[*]".
-
- Subscripting may also be performed on non-array values, in
- which case the subscripts specify a substring to be
- extracted. For example, if FFFFOOOOOOOO is set to ffffoooooooobbbbaaaarrrr, then eeeecccchhhhoooo
- $$$$FFFFOOOOOOOO[[[[2222,,,,5555]]]] prints oooooooobbbbaaaa.
-
- Subscripts may be used inside braces used to delimit a
- parameter name, thus $$$${{{{ffffoooooooo[[[[2222]]]]}}}} is equivalent to $$$$ffffoooooooo[[[[2222]]]]. If
- the KKKKSSSSHHHH____AAAARRRRRRRRAAAAYYYYSSSS option is set, the braced form is the only
- one that will work, the subscript otherwise not being
- treated specially.
-
-
-
- Page 1 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- If a subscript is used on the left side of an assignment the
- selected range is replaced by the expression on the right
- side.
-
- If the opening bracket or the comma is directly followed by
- an opening parentheses the string up to the matching closing
- one is considered to be a list of flags. The flags currently
- understood are:
-
- eeee this option has no effect and retained for
- backward compatibility only
-
- wwww if the parameter subscripted is a scalar than this
- flag makes subscription work on a per-word basis
- instead of characters
-
- ssss::::_s_t_r_i_n_g::::
- this gives the _s_t_r_i_n_g that separates words (for
- use with the wwww flag)
-
- pppp Recognize the same escape sequences as the pppprrrriiiinnnntttt
- builtin in the string argument of a subsequent ssss
- flag.
-
- ffff if the parameter subscripted is a scalar than this
- flag makes subscription work on a per-line basis
- instead of characters. This is a shorthand for
- ppppwwwwssss::::\\\\nnnn::::.
-
- rrrr if this flag is given the _e_x_p is taken as a
- pattern and the result is the first matching array
- element, substring or word (if the parameter is an
- array, if it is a scalar, or if it is a scalar and
- the wwww flag is given, respectively); note that this
- is like giving a number: $$$$ffffoooooooo[[[[((((rrrr))))????????,,,,3333]]]] and
- $$$$ffffoooooooo[[[[((((rrrr))))????????,,,,((((rrrr))))ffff****]]]] work
-
- RRRR like rrrr, but gives the last match
-
- iiii like rrrr, but gives the index of the match instead;
- this may not be combined with a second argument
-
- IIII like iiii, but gives the index of the last match
-
- nnnn::::_e_x_p_r::::
- if combined with rrrr, RRRR, , or IIII, makes them give the
- _n'th or _n'th last match (if _e_x_p_r evaluates to _n)
-
- PPPPoooossssiiiittttiiiioooonnnnaaaallll PPPPaaaarrrraaaammmmeeeetttteeeerrrrssss
- Positional parameters are set by the shell on invocation, by
- the sssseeeetttt builtin, or by direct assignment. The parameter _n,
- where _n is a number, is the _nth positional parameter. The
-
-
-
- Page 2 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- parameters ****, @@@@, and aaaarrrrggggvvvv are arrays containing all the
- positional parameters; thus aaaarrrrggggvvvv[_n], etc. is equivalent to
- simply _n.
-
- SSSSppppeeeecccciiiiaaaallll PPPPaaaarrrraaaammmmeeeetttteeeerrrrssss
- The following parameters are automatically set by the shell:
-
- !!!! The process id of the last background command
- invoked.
- #### The number of positional parameters in decimal.
- AAAARRRRGGGGCCCC Same as ####. It has no special meaning in sh/ksh
- compatibility mode.
- $$$$ The process id of this shell.
- ---- Flags supplied to the shell on invocation or by
- the sssseeeetttt or sssseeeettttoooopppptttt commands.
- **** An array containing the positional parameters.
- aaaarrrrggggvvvv Same as ****. It has no special meaning in sh/ksh
- compatibility mode.
- @@@@ Same as aaaarrrrggggvvvv[[[[@@@@]]]] but it can be used in sh/ksh
- compatibility mode.
- ???? The exit value returned by the last command.
- ssssttttaaaattttuuuussss
- Same as ????. It has no special meaning in sh/ksh
- compatibility mode.
- ____ The last argument of the previous command. Also,
- this parameter is set in the environment of every
- command executed to the full pathname of the
- command.
- EEEEGGGGIIIIDDDD The effective group id of the shell process. If
- you have sufficient privileges, you may change the
- effective group id of the shell process by
- assigning to this parameter. Also (assuming
- sufficient privileges), you may start a single
- command with a different effective group id by:
- ((((EEEEGGGGIIIIDDDD====eeeeggggiiiidddd ;;;; ccccoooommmmmmmmaaaannnndddd))))
- EEEEUUUUIIIIDDDD The effective user id of the shell process. If
- you have sufficient privileges, you may change the
- effective user id of the shell process by
- assigning to this parameter. Also (assuming
- sufficient privileges), you may start a single
- command with a different effective user id by:
- ((((EEEEUUUUIIIIDDDD====eeeeuuuuiiiidddd ;;;; ccccoooommmmmmmmaaaannnndddd))))
- EEEERRRRRRRRNNNNOOOO
- The value of errno as set by the most recently
- failed system call. This value is system
- dependent and is intended for debugging purposes.
- GGGGIIIIDDDD The group id of the shell process. If you have
- sufficient privileges, you may change the group id
- of the shell process by assigning to this
- parameter. Also (assuming sufficient privileges),
- you may start a single command under a different
- group id by:
-
-
-
- Page 3 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- ((((GGGGIIIIDDDD====ggggiiiidddd ;;;; ccccoooommmmmmmmaaaannnndddd))))
- HHHHOOOOSSSSTTTT The current hostname.
- LLLLIIIINNNNEEEENNNNOOOO
- The line number of the current line within the
- current script being executed.
- LLLLOOOOGGGGNNNNAAAAMMMMEEEE
- If the corresponding variable is not set in the
- environment of the shell, it is initialized to the
- login name corresponding to the current login
- session. This parameter is exported by default but
- this can be disabled using the ttttyyyyppppeeeesssseeeetttt builtin.
- MMMMAAAACCCCHHHHTTTTYYYYPPPPEEEE
- The machine type (microprocessor class or machine
- model), as determined at compile time.
- OOOOLLLLDDDDPPPPWWWWDDDD
- The previous working directory.
- OOOOPPPPTTTTAAAARRRRGGGG
- The value of the last option argument processed by
- the ggggeeeettttooooppppttttssss command.
- OOOOPPPPTTTTIIIINNNNDDDD
- The index of the last option argument processed by
- the ggggeeeettttooooppppttttssss command.
- OOOOSSSSTTTTYYYYPPPPEEEE
- The operating system, as determined at compile
- time.
- PPPPPPPPIIIIDDDD The process id of the parent of the shell.
- PPPPWWWWDDDD The present working directory.
- RRRRAAAANNNNDDDDOOOOMMMM
- A random integer from 0 to 32767, newly generated
- each time this parameter is referenced. The
- random number generator can be seeded by assigning
- a numeric value to RRRRAAAANNNNDDDDOOOOMMMM.
- SSSSEEEECCCCOOOONNNNDDDDSSSS
- The number of seconds since shell invocation. If
- this parameter is assigned a value, then the value
- returned upon reference will be the value that was
- assigned plus the number of seconds since the
- assignment.
- SSSSHHHHLLLLVVVVLLLL
- Incremented by one each time a new shell is
- started.
- ssssiiiiggggnnnnaaaallllssss
- An array containing the names of the signals.
- TTTTTTTTYYYY The name of the tty associated with the shell, if
- any.
- TTTTTTTTYYYYIIIIDDDDLLLLEEEE
- The idle time of the tty associated with the shell
- in seconds or -1 if there is no such tty.
- UUUUIIIIDDDD The user id of the shell process. If you have
- sufficient privileges, you may change the user id
- of the shell by assigning to this parameter. Also
- (assuming sufficient privileges), you may start a
-
-
-
- Page 4 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- single command under a different user id by:
- ((((UUUUIIIIDDDD====uuuuiiiidddd ;;;; ccccoooommmmmmmmaaaannnndddd))))
- UUUUSSSSEEEERRRRNNNNAAAAMMMMEEEE
- The username corresponding to the user id of the
- shell process. If you have sufficient privileges,
- you may change the username (and also the user id
- and group id) of the shell by assigning to this
- parameter. Also (assuming sufficient privileges),
- you may start a single command under a different
- username (and user id and group id) by:
- ((((UUUUSSSSEEEERRRRNNNNAAAAMMMMEEEE====uuuusssseeeerrrrnnnnaaaammmmeeee ;;;; ccccoooommmmmmmmaaaannnndddd))))
- VVVVEEEENNNNDDDDOOOORRRR
- The vendor, as determined at compile time.
- ZZZZSSSSHHHHNNNNAAAAMMMMEEEE
- Expands to the basename of the command used to
- invoke this instance of zzzzsssshhhh.
- ZZZZSSSSHHHH____NNNNAAAAMMMMEEEE
- Expands to the basename of the command used to
- invoke this instance of zzzzsssshhhh.
- ZZZZSSSSHHHH____VVVVEEEERRRRSSSSIIIIOOOONNNN
- The version number of this zzzzsssshhhh.
-
- The following parameters are used by the shell:
-
- AAAARRRRGGGGVVVV0000
- If exported, it's value is used as argv[0] of
- external commands. Usually used in constructs
- like 'ARGV0=emacs nethack'.
- BBBBAAAAUUUUDDDD The baud rate of the current connection. Used by
- the line editor update mechanism to compensate for
- a slow terminal by delaying updates until
- necessary. This may be profitably set to a lower
- value in some circumstances, e.g. for slow modems
- dialing into a communications server which is
- connected to a host via a fast link; in this case,
- this variable would be set by default to the speed
- of the fast link, and not the modem. This
- parameter should be set to the baud rate of the
- slowest part of the link for best performance. The
- compensation mechanism can be turned off by
- setting the variable to zero.
- ccccddddppppaaaatttthhhh ((((CCCCDDDDPPPPAAAATTTTHHHH))))
- An array (colon-separated list) of directories
- specifying the search path for the ccccdddd command.
- CCCCOOOOLLLLUUUUMMMMNNNNSSSS
- The number of columns for this terminal session.
- Used for printing select lists and for the line
- editor.
- DDDDIIIIRRRRSSSSTTTTAAAACCCCKKKKSSSSIIIIZZZZEEEE
- The maximum size of the directory stack. If the
- stack gets larger than this, it will be truncated
- automatically. This is useful with the AAAAUUUUTTTTOOOO____PPPPUUUUSSSSHHHHDDDD
-
-
-
- Page 5 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- option.
- FFFFCCCCEEEEDDDDIIIITTTT
- The default editor for the ffffcccc builtin.
- ffffiiiiggggnnnnoooorrrreeee ((((FFFFIIIIGGGGNNNNOOOORRRREEEE))))
- An array (colon separated list) containing the
- suffixes of files to be ignored during filename
- completion. However, if the completion generates
- only files which would match if this variable
- would be ignored, than these files are completed
- anyway.
- ffffppppaaaatttthhhh ((((FFFFPPPPAAAATTTTHHHH))))
- An array (colon separated list) of directories
- specifying the search path for function
- definitions. This path is searched when a
- function with the -uuuu attribute is referenced. If
- an executable file is found, then it is read and
- executed in the current environment.
- hhhhiiiissssttttcccchhhhaaaarrrrssss
- Three characters used by the shell's history and
- lexical analysis mechanism. The first character
- signals the start of a history substitution
- (default `!'). The second character signals the
- start of a quick history substitution (default
- `^'). The third character is the comment
- character (default `#').
- HHHHIIIISSSSTTTTCCCCHHHHAAAARRRRSSSS
- Same as hhhhiiiissssttttcccchhhhaaaarrrrssss....
- HHHHIIIISSSSTTTTFFFFIIIILLLLEEEE
- The file to save the history in when an
- interactive shell exits. If unset, the history is
- not saved.
- HHHHIIIISSSSTTTTSSSSIIIIZZZZEEEE
- The maximum size of the history list.
- HHHHOOOOMMMMEEEE The default argument for the ccccdddd command.
- IIIIFFFFSSSS Internal field separators, normally space, tab,
- and newline, that are used to separate words which
- result from command or parameter substitution and
- words read by the rrrreeeeaaaadddd builtin. Any characters
- from the set space, tab and newline that appear in
- the IFS are called _I_F_S _w_h_i_t_e _s_p_a_c_e. One or more
- IFS white space characters or one non-IFS white
- space character together with any adjacent IFS
- white space character delimit a field. If an IFS
- white space character appears twice consecutively
- in the IFS, this character is treated as if it
- were not an IFS white space character.
- KKKKEEEEYYYYTTTTIIIIMMMMEEEEOOOOUUUUTTTT
- The time the shell waits, in hundredths of
- seconds, for another key to be pressed when
- reading bound multi-character sequences.
- LLLLAAAANNNNGGGG This variable determines the locale category for
- any category not specifically selected via a
-
-
-
- Page 6 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- variable starting with LLLLCCCC____.
- LLLLCCCC____AAAALLLLLLLL
- This variable overrides the value of the LANG
- variable and the value of any of the other
- variables starting with LLLLCCCC____.
- LLLLCCCC____CCCCOOOOLLLLLLLLAAAATTTTEEEE
- This variable determines the locale category for
- character collation information within ranges in
- glob brackets and for sorting.
- LLLLCCCC____CCCCTTTTYYYYPPPPEEEE
- This variable determines the locale category for
- character handling functions.
- LLLLCCCC____MMMMEEEESSSSSSSSAAAAGGGGEEEESSSS
- This variable determines the language in which
- messages should be written. Note that zsh does
- not use message catalogs.
- LLLLCCCC____TTTTIIIIMMMMEEEE
- This variable determines the locale category for
- date and time formatting in promt escape
- sequences.
- LLLLIIIINNNNEEEESSSS
- The number of lines for this terminal session.
- Used for printing select lists and for the line
- editor.
- LLLLIIIISSSSTTTTMMMMAAAAXXXX
- In the line editor, the number of filenames to
- list without asking first. If set to zero, the
- shell asks only if the top of the listing would
- scroll off the screen.
- LLLLOOOOGGGGCCCCHHHHEEEECCCCKKKK
- The interval in seconds between checks for
- login/logout activity using the wwwwaaaattttcccchhhh parameter.
- MMMMAAAAIIIILLLL If this parameter is set and mmmmaaaaiiiillllppppaaaatttthhhh is not set,
- the shell looks for mail in the specified file.
- MMMMAAAAIIIILLLLCCCCHHHHEEEECCCCKKKK
- The interval in seconds between checks for new
- mail.
- mmmmaaaaiiiillllppppaaaatttthhhh ((((MMMMAAAAIIIILLLLPPPPAAAATTTTHHHH))))
- An array (colon-separated list) of filenames to
- check for new mail. Each filename can be followed
- by a ? and a message that will be printed. The
- message will undergo parameter expansion, command
- substitution and arithmetic substitution with the
- variable $$$$____ defined as the name of the file that
- has changed. The default message is "_Y_o_u _h_a_v_e _n_e_w
- _m_a_i_l." If an element is a directory instead of a
- file the shell will recursively check every file
- in every subdirectory of the element.
- mmmmaaaannnnppppaaaatttthhhh ((((MMMMAAAANNNNPPPPAAAATTTTHHHH))))
- An array (colon-separated list) whose value is not
- used by the shell. The mmmmaaaannnnppppaaaatttthhhh array can be
- useful, however, since setting it also sets
-
-
-
- Page 7 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- MMMMAAAANNNNPPPPAAAATTTTHHHH, and vice versa.
- NNNNUUUULLLLLLLLCCCCMMMMDDDD
- The command name to assume if a redirection is
- specified with no command. Defaults to ccccaaaatttt. For
- sh/ksh-like behavior, change this to ::::. For csh-
- like behavior, unset this parameter; the shell
- will print an error message if null commands are
- entered.
- ppppaaaatttthhhh ((((PPPPAAAATTTTHHHH))))
- An array (colon-separated list) of directories to
- search for commands. When this parameter is set,
- each directory is scanned and all files found are
- put in a hash table.
- PPPPOOOOSSSSTTTTEEEEDDDDIIIITTTT
- This string is output whenever the line editor
- exits. It usually contains termcap strings to
- reset the terminal.
- PPPPSSSS1111 The primary prompt string, printed before a
- command is read; the default is "%m%# ". If the
- escape sequence takes an optional integer, it
- should appear between the '%' and the next
- character of the sequence. The following escape
- sequences are recognized:
-
- %%%%%%%% A `%'.
- %%%%)))) A `)'.
- %%%%dddd
- %%%%//// Present working directory ($PWD).
- %%%%~~~~ $PWD. If it has a named directory as its
- prefix, that part is replaced by a ~ followed
- by the name of the directory. If it starts
- with $HOME, that part is replaced by a ~.
- %%%%cccc
- %%%%....
- %%%%CCCC Trailing component of $PWD. An integer may
- follow the '%' to get more than one
- component. Unless %%%%CCCC is used, tilde
- expansion is performed first.
- %%%%hhhh
- %%%%!!!! Current history event number
- %%%%MMMM The full machine hostname.
- %%%%mmmm The hostname up to the first '.'. An integer
- may follow the '%' to specify how many
- components of the hostname are desired.
- %%%%SSSS ((((%%%%ssss))))
- Start (stop) standout mode.
- %%%%UUUU ((((%%%%uuuu))))
- Start (stop) underline mode.
- %%%%BBBB ((((%%%%bbbb))))
- Start (stop) boldface mode.
- %%%%tttt
- %%%%@@@@ Current time of day, in 12-hour, am/pm
-
-
-
- Page 8 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- format.
- %%%%TTTT Current time of day, in 24-hour format.
- %%%%**** Current time of day in 24-hour format, with
- seconds.
- %%%%nnnn $$$$UUUUSSSSEEEERRRRNNNNAAAAMMMMEEEE.
- %%%%wwww The date in day-dd format.
- %%%%WWWW The date in mm/dd/yy format.
- %%%%DDDD The date in yy-mm-dd format.
- %%%%DDDD{{{{_s_t_r_i_n_g}}}}
- _s_t_r_i_n_g is formatted using the ssssttttrrrrffffttttiiiimmmmeeee
- function. See ssssttttrrrrffffttttiiiimmmmeeee((((3333)))) for more details,
- if your system has it.
- %%%%llll The line (tty) the user is logged in on.
- %%%%???? The return code of the last command executed
- just before the prompt.
- %%%%____ The status of the parser, i.e. the shell
- constructs (like `if' and `for') that have
- been started on the command line. If given an
- integer number that many strings will be
- printed; zero or no integer means print as
- many as there are.
- %%%%EEEE Clears to end of line.
- %%%%#### A '#' if the shell is running as root, a '%'
- if not. Equivalent to %(#.#.%%).
- %%%%vvvv The value of the first element of the $psvar
- array parameter. Following the '%' with an
- integer gives that element of the array.
- %%%%{{{{...%%%%}}}}
- Include a string as a literal escape
- sequence. The string within the braces
- should not change the cursor position.
- %%%%((((xxxx._t_r_u_e-_t_e_x_t._f_a_l_s_e-_t_e_x_t))))
- Specifies a ternary expression. The
- character following the xxxx is arbitrary; the
- same character is used to separate the text
- for the "true" result from that for the
- "false" result. This separator may not
- appear in the _t_r_u_e-_t_e_x_t, except as part of a
- % sequence. A `)' may appear in the _f_a_l_s_e-
- _t_e_x_t as `%)'. _T_r_u_e-_t_e_x_t and _f_a_l_s_e-_t_e_x_t may
- both contain arbitrarily-nested escape
- sequences, including further ternary
- expressions. The left parenthesis may be
- preceded or followed by a positive integer _n,
- which defaults to zero. The test character xxxx
- may be any of the following:
-
- cccc
- ....
- ~~~~ True if the current path, with prefix
- replacement, has at least _n elements.
- ////
-
-
-
- Page 9 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- CCCC True if the current absolute path has at
- least _n elements.
- tttt True if the time in minutes is equal to
- _n.
- TTTT True if the time in hours is equal to _n.
- dddd True if the day of the month is equal to
- _n.
- DDDD True if the month is equal to _n (January
- = 0).
- wwww True if the day of the week is equal to
- _n (Sunday = 0).
- ???? True if the exit status of the last
- command was _n.
- #### True if the effective uid of the current
- process is _n.
- gggg True if the effective gid of the current
- process is _n.
- LLLL True if the SHLVL parameter is at least
- _n.
- SSSS True if the SECONDS parameter is at
- least _n.
- vvvv True if the array psvar has at least _n
- elements.
- ____ True if at least _n shell constructs were
- started.
- %%%%<<<<_s_t_r_i_n_g<<<<
- %%%%>>>>_s_t_r_i_n_g>>>>
- %%%%[[[[xxxx_s_t_r_i_n_g]]]]
- Specifies truncation behaviour. The third
- form is equivalent to `%_x_s_t_r_i_n_g_x', i.e. _x may
- be `<' or `>'. The numeric argument, which
- in the third form may appear immediately
- after the `[', specifies the maximum
- permitted length of the various strings that
- can be displayed in the prompt. If this
- integer is zero, or missing, truncation is
- disabled. Truncation is initially disabled.
- The forms with `<' truncate at the left of
- the string, and the forms with `>' truncate
- at the right of the string. For example, if
- the current directory is `/home/pike', the
- prompt `%8<..<%/' will expand to `..e/pike'.
- The _s_t_r_i_n_g will be displayed in place of the
- truncated portion of any string. In this
- string, the terminating character (`<', `>'
- or `]'), or in fact any character, may be
- quoted by a preceding `\'. % sequences are
- _n_o_t treated specially. If the _s_t_r_i_n_g is
- longer than the specified truncation length,
- it will appear in full, completely replacing
- the truncated string.
-
-
-
-
- Page 10 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- PPPPSSSS2222 The secondary prompt, printed when the shell needs
- more information to complete a command.
- Recognizes the same escape sequences as $$$$PPPPSSSS1111. The
- default is "%_> ", which displays any shell
- constructs or quotation marks which are currently
- being processed.
- PPPPSSSS3333 Selection prompt used within a sssseeeelllleeeecccctttt loop.
- Recognizes the same escape sequences as $$$$PPPPSSSS1111. The
- default is "?# ".
- PPPPSSSS4444 The execution trace prompt. Default is "+ ".
- PPPPRRRROOOOMMMMPPPPTTTT
- PPPPRRRROOOOMMMMPPPPTTTT2222
- PPPPRRRROOOOMMMMPPPPTTTT3333
- PPPPRRRROOOOMMMMPPPPTTTT4444
- Same as PPPPSSSS1111, PPPPSSSS2222, PPPPSSSS3333, and PPPPSSSS4444, respectively.
- These parameters do not have any special meaning
- in sh/ksh compatibility mode.
- ppppssssvvvvaaaarrrr ((((PPPPSSSSVVVVAAAARRRR))))
- An array (colon-separated list) whose first nine
- values can be used in PPPPRRRROOOOMMMMPPPPTTTT strings. Setting
- ppppssssvvvvaaaarrrr also sets PPPPSSSSVVVVAAAARRRR, and vice versa.
- pppprrrroooommmmpppptttt
- Same as PPPPSSSS1111. It has no special meaning in sh/ksh
- compatibility mode.
- RRRREEEEAAAADDDDNNNNUUUULLLLLLLLCCCCMMMMDDDD
- The command name to assume if a single input
- redirection is specified with no command.
- Defaults to mmmmoooorrrreeee.
- RRRREEEEPPPPOOOORRRRTTTTTTTTIIIIMMMMEEEE
- If nonnegative, commands whose combined user and
- system execution times (measured in seconds) are
- greater than this value have timing statistics
- printed for them.
- RRRRPPPPRRRROOOOMMMMPPPPTTTT
- RRRRPPPPSSSS1111 This prompt is displayed on the right-hand side of
- the screen when the primary prompt is being
- displayed on the left. This does not work if the
- SSSSIIIINNNNGGGGLLLLEEEELLLLIIIINNNNEEEEZZZZLLLLEEEE option is set. Recognizes the same
- escape sequences as PPPPRRRROOOOMMMMPPPPTTTT.
- SSSSAAAAVVVVEEEEHHHHIIIISSSSTTTT
- The maximum number of history events to save in
- the history file.
- SSSSPPPPRRRROOOOMMMMPPPPTTTT
- The prompt used for spelling correction. The
- sequence %%%%RRRR expands to the string which presumably
- needs spelling correction, and %%%%rrrr expands to the
- proposed correction. All other PPPPRRRROOOOMMMMPPPPTTTT escapes are
- also allowed.
- SSSSTTTTTTTTYYYY If this parameter is set in a command's
- environment, the shell runs the ssssttttttttyyyy command with
- the value of this parameter as arguments in order
- to set up the terminal before executing the
-
-
-
- Page 11 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- command. The modes apply only to the command, and
- are reset when it finishes or is suspended. If the
- command is suspended and continued later with the
- ffffgggg or wwwwaaaaiiiitttt builtins it will see the modes
- specified by STTY, as if it were not suspended.
- This (intentionally) does not apply if the command
- is continued via "kill -CONT". STTY is ignored if
- the command is run in the background, or if it is
- in the environment of the shell but not explicitly
- assigned to in the input line. This avoids running
- stty at every external command by accidentally
- exporting it. Also note that STTY should not be
- used for window size specifications; these will
- not be local to the command.
- TTTTIIIIMMMMEEEEFFFFMMMMTTTT
- The format of process time reports with the ttttiiiimmmmeeee
- keyword. The default is "%E real %U user %S
- system %P %J". Recognizes the following escape
- sequences:
-
- %%%%%%%% A `%'.
- %%%%UUUU CPU seconds spent in user mode.
- %%%%SSSS CPU seconds spent in kernel mode.
- %%%%EEEE Elapsed time in seconds.
- %%%%PPPP The CPU percentage, computed as (%U+%S)/%E.
- %%%%JJJJ The name of this job.
-
- A star may be inserted between the percent sign and
- flags printing time. This cause the time to be printed
- in hh:mm:ss.ttt format (hours and minutes are only
- printed if they are not zero).
- TTTTMMMMOOOOUUUUTTTT
- If this parameter is nonzero, the shell will
- receive an AAAALLLLRRRRMMMM signal if a command is not entered
- within the specified number of seconds after
- issuing a prompt. If there is a trap on SSSSIIIIGGGGAAAALLLLRRRRMMMM,
- it will be executed and a new alarm is scheduled
- using the value of the TTTTMMMMOOOOUUUUTTTT parametr after
- exececuting the trap. If no trap is set, and the
- idle time of the terminal is not less than the
- value of the TTTTMMMMOOOOUUUUTTTT parameter, zsh terminates.
- Otherwise a new alarm is scheduled to TTTTMMMMOOOOUUUUTTTT
- seconds after the last keypress.
- TTTTMMMMPPPPPPPPRRRREEEEFFFFIIIIXXXX
- A pathname prefix which the shell will use for all
- temporary files. Note that this should include an
- initial part for the file name as well as any
- directory names. The default is /tmp/zsh.
- wwwwaaaattttcccchhhh ((((WWWWAAAATTTTCCCCHHHH))))
- An array (colon-separated list) of login/logout
- events to report. If it contains the single word
- "all", then all login/logout events are reported.
-
-
-
- Page 12 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- If it contains the single word "notme", then all
- events are reported as with "all" except
- $USERNAME. An entry in this list may consist of a
- username, an `@' followed by a remote hostname,
- and a `%' followed by a line (tty). Any or all of
- these components may be present in an entry; if a
- login/logout event matches all of them, it is
- reported.
- WWWWAAAATTTTCCCCHHHHFFFFMMMMTTTT
- The format of login/logout reports if the wwwwaaaattttcccchhhh
- parameter is set. Default is "%n has %a %l from
- %m." Recognizes the following escape sequences:
-
- %%%%nnnn The name of the user that logged in/out.
- %%%%aaaa The observed action, i.e. "logged on" or
- "logged off".
- %%%%llll The line (tty) the user is logged in on.
- %%%%MMMM The full hostname of the remote host.
- %%%%mmmm The hostname up to the first ".". If only
- the ip address is available or the utmp field
- contains the name of an X-windows display,
- the whole name is printed.
- NNNNOOOOTTTTEEEE::::
- The %m and %M escapes will work only if there
- is a host name field in the utmp on your
- machine. Otherwise they are treated as
- ordinary strings.
- %%%%SSSS ((((%%%%ssss))))
- Start (stop) standout mode.
- %%%%UUUU ((((%%%%uuuu))))
- Start (stop) underline mode.
- %%%%BBBB ((((%%%%bbbb))))
- Start (stop) boldface mode.
- %%%%tttt
- %%%%@@@@ The time, in 12-hour, am/pm format.
- %%%%TTTT The time, in 24-hour format.
- %%%%wwww The date in day-dd format.
- %%%%WWWW The date in mm/dd/yy format.
- %%%%DDDD The date in yy-mm-dd format.
- %%%%((((xxxx:_t_r_u_e-_t_e_x_t:_f_a_l_s_e-_t_e_x_t))))
- Specifies a ternary expression. The
- character following the xxxx is arbitrary; the
- same character is used to separate the text
- for the "true" result from that for the
- "false" result. Both the separator and the
- right parenthesis may be escaped with a
- backslash. Ternary expressions may be
- nested.
-
- The test character xxxx may be any one of llll, nnnn,
- mmmm, or MMMM, which indicate a "true" result if
- the corresponding escape sequence would
-
-
-
- Page 13 (printed 4/24/98)
-
-
-
-
-
-
- ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111)))) zzzzsssshhhh vvvveeeerrrrssssiiiioooonnnn 3333....0000 ((((JJJJuuuunnnneeee 22226666,,,, 1111999999996666)))) ZZZZSSSSHHHHPPPPAAAARRRRAAAAMMMM((((1111))))
-
-
-
- return a non-empty value; or may be aaaa, which
- indicates a "true" result if the watched user
- has logged in, or "false" if he has logged
- out. Other characters evaluate to neither
- true nor false; the entire expression is
- omitted in this case.
-
- If the result is "true", then the _t_r_u_e-_t_e_x_t
- is formatted according to the rules above and
- printed, and the _f_a_l_s_e-_t_e_x_t is skipped. If
- "false", the _t_r_u_e-_t_e_x_t is skipped and the
- _f_a_l_s_e-_t_e_x_t is formatted and printed. Either
- or both of the branches may be empty, but
- both separators must be present in any case.
-
- WWWWOOOORRRRDDDDCCCCHHHHAAAARRRRSSSS
- A list of nonalphanumeric characters considered
- part of a word by the line editor.
- ZZZZDDDDOOOOTTTTDDDDIIIIRRRR
- The directory to search for shell startup files
- (.zshrc, etc), if not $$$$HHHHOOOOMMMMEEEE.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 14 (printed 4/24/98)
-
-
-
-